﻿using SIMS.Shared.Models;
using SIMS.SqlSugarWebApi.Models;

namespace SIMS.SqlSugarWebApi.ServiceInterface
{
    public interface IRoleService : IBaseService<Role>
    {
        public Task<PagingModel<Role>> GetRoles(string roleName, int pageNum, int pageSize);

        public Task<List<UserRights>> GetUserRights(int? userId);

        public PagingModel<RoleMenu> GetRoleMenus(int? roleId);

        public Task<int> SetRoleMenus(int roleId, string menuIds);
    }
}
